package service.impl;
import dao.UserDao;
import dao.impl.UserDaoImpl;
import domain.User;
import service.UserService;

/**
 * UserService用户服务实现类
 */
@SuppressWarnings("unused")
public class UserServiceImpl implements UserService {
    private final UserDao userDao = new UserDaoImpl();

    public boolean checkUsername(String username, String email) {
        return userDao.select(username, email);
    }


    @Override
    public void saveUser(User user) {
        userDao.updateUser(user);
    }


    @Override
    public void addInfo(User user) {
        userDao.addInfo(user);

    }

}